<?php
// 语言文件
$config['language']['default']="";

// 站点名称配置
define("CONFIG_SITE_NAME",'cumtxy');

// 运行的环境是不是调试环境
define("RUNNING_IN_DEVELOP",true);

// likyhPHP运行配置
$config['site']= array(
    // 默认方法，此概念类似首页
    'defaultPage'=>'home',
    // 类不存在时调用的方法
    'defaultAction'=>'index',
    // 运行的位置，这一个字段开头不要加"/"，如果是网站根目录那就为空
    'commonPath'=>'cumtxy',
    // 系统结构缓存时间,0表示不缓存
    'systemCache'=>0,
);

/**
 * @param $set
 * @return CacheInterface
 */
$config['cache']['getCache']=function($set){
    return new FileCache($set);
};

//数据库配置
$config['mysql']= array(
    'host'=>"localhost",
    'port'=>"3306",
    'username'=>"root",
    'password'=>"",
    'dbname'=>"cumtxy",
);

// 密码配置,混淆码
$config['password']['auth'] = "MayWeGoTogether";

//上传配置
// 定义存在的根目录
$config['uploader']['rootPath'] = "site/upload/";
// 缓存路径
$config['uploader']['cachePath'] = "cache/";
// 保存的路径
$config['uploader']['savePath'] = "site/upload/";
// 大小限制，单位kb
$config['uploader']['maxSize'] = 8000;
// 允许的文件类型
$config['uploader']['defaultFile'] = "doc,docx,xls,xlsx,ppt,pptx,txt,pdf,md,rar,zip,7z,mp3,gif,png,jpg,jpeg,bmp";
$config['uploader']['imageFile'] = "gif,png,jpg,jpeg,bmp";
$config['uploader']['documentFile'] = "doc,docx,xls,xlsx,ppt,pptx,txt,pdf,md,xml";
$config['uploader']['videoFile'] = "flv,swf,mkv,avi,rm,rmvb,mpeg,mpg";
$config['uploader']['musicFile'] = "ogg,ogv,mov,wmv,mp4,webm,mp3,wav,mid";
$config['uploader']['compressFile'] = "rar,zip,tar,gz,7z,bz2,cab,iso";

// redis配置
$config['redis']=array(
    'dbname'=>"eswcGYLHClgABroJarjx",
    'host'=>"redis.duapp.com",
    'port'=>"80",
    'user'=>"HNtF8PpKdoLMQTDurEuZUVTE",
    'pwd'=>"bzNmftP2pk27aeWsARgCG8Nd4lUznuug",
);
